package com.cskaoyan.controller;

import com.cskaoyan.bean.MarketAdmin;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/10/12 11:58
 */
@RestController
@RequestMapping("admin/admin")
public class AdminAdminController {

    @Autowired
    AdminService adminService;


    // page=1&limit=20&sort=add_time&order=desc  &username=ga
    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info,String username) {
        CommonData<MarketAdmin> data = adminService.list(info, username);
        return BaseRespVo.ok(data);
    }
}
